import uuid
import jsonpath
from API_TEST.apis.base_api import BaseApi


class WeWork(BaseApi):
    BaseUrl = "https://qyapi.weixin.qq.com/cgi-bin"

    def jsonpath_list(self, json_obj, expr):
        return jsonpath.jsonpath(json_obj, expr)

    def gen_union_id(self):
        return str(uuid.uuid4()).split("-")[0]
